package com.my.simple.service.auth;

import com.my.simple.entity.auth.User;
import com.my.simple.entity.auth.UserRole;

import java.util.List;

public interface UserService {
    void addUser(User user);

    User getUserById(Integer userId);

    User getUserByAccount(String userAccount);

    List<User> getAllUser();

    void deleteUserById(Integer userId);

    void updateUser(User userItem);

    void addUserRole(Integer userId, Integer roleId);

    void deleteUserRole(Integer userId, Integer roleId);

    List<UserRole> getUserRoleByUserId(Integer userId);

    void updateUserRole(List<UserRole> userRoleEntityList);
}
